package com.tony.personalcore.facade.impl;

import javax.jws.WebService;

import com.tony.personalcore.dao.AccountDAO;
import com.tony.personalcore.dataobject.AccountDO;
import com.tony.personalcore.facade.AccountQueryServiceFacade;

@WebService(endpointInterface = "com.tony.personalcore.facade.AccountQueryServiceFacade")
public class AccountQueryServiceFacadeImpl implements AccountQueryServiceFacade {

    private AccountDAO accountDAO;

    @Override
    public AccountDO queryByEmail(String email) {
        return accountDAO.queryByEmail(email);
    }

    public void setAccountDAO(AccountDAO accountDAO) {
        this.accountDAO = accountDAO;
    }

    @Override
    public void insert(AccountDO accountDO) {
        accountDAO.insert(accountDO);
    }

}
